﻿using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using System.Collections.Generic;

namespace JT808.Protocol.MessageBody
{
    /// <summary>
    /// 数据下行透传
    /// </summary>
    [JT808Formatter(typeof(JT808_0x8900_Formatter))]
    public class JT808_0x8900 : JT808Bodies
    {
        /// <summary>
        /// 透传消息ID
        /// </summary>
        public byte passthroughID;

        /// <summary>
        /// 操作类型
        /// </summary>
        public byte operationType;

        /// <summary>
        /// 总轴数
        /// </summary>
        public byte zno;

        /// <summary>
        /// 操作类型
        /// </summary>
        public List<JT808_0x8900_Sub> sub;

        /// <summary>
        /// 高温阀值
        /// </summary>
        public byte temperatureHigh;

    }

    public class JT808_0x8900_Sub
    {
        /// <summary>
        /// 高气压阀值
        /// </summary>
        public byte pressHigh;

        /// <summary>
        /// 低气压阀值
        /// </summary>
        public byte pressLow;
    }
}
